package vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 质量检测表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "质量检测表")
public class QualityInspectionVo implements Serializable {

    @Schema(description = "检测记录ID")
    private Integer inspectionId;

    @Schema(description = "质检类型（原材料/半成品/成品）")
    private String inspectType;

    @Schema(description = "光通量")
    private String lightFlux;

    @Schema(description = "色温")
    private String colorTemp;

    @Schema(description = "缺陷分类")
    private String defectType;
    //
    @Schema(description = "缺陷照片")
    private String defectPhoto;

    @Schema(description = "质检员ID")
    private Integer inspectorId;

    @Schema(description = "质检状态")
    private String inspectStatus;

    @Schema(description = "检测结果（合格/不合格）")
    private String inspectResult;

    @Schema(description = "检测数据（检测结果）")
    private String inspectData;

    @Schema(description = "原材料类型")
    private String inspectCategory;

    @Schema(description = "检测数量")
    private String inspectCount;

    @Schema(description = "处理建议")
    private String treatment;

    @Schema(description = "处理结果")
    private String treatmentResult;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @Schema(description = "质检员用户名")
    private String username;

    @Schema(description = "质检员姓名")
    private String name;
}
